Don't dereference NULL upon failed malloc and realloc.
authorJim Meyering <jim@meyering.net>
Tue, 23 Jun 2009 06:49:20 +0000 (06:49 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 23 Jun 2009 06:49:20 +0000 (06:49 +0000)
commitd752e15859d0fd723274ee1a5b6f0b44384bd1d1
treecf64cde37d229c3e999141588a577d37a9a863f5
parent441874133dfe8fcf0a61736d2aeab2854c5850ad
Don't dereference NULL upon failed malloc and realloc.

* src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use xmalloc
and xrealloc (not malloc and realloc), so subsequent heap pointer
dereferences are guaranteed to be valid.
src/ChangeLog
src/ftfont.c